package com.gitee.dolt.core.base.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author LYH
 */
@Data
@ApiModel(value = "加密请求")
public class EncryptedReq<T> {
    @ApiModelProperty(value = "前端生成aes密钥并用rsaPub加密结果")
    @NotBlank
    private String encryptedAes;

    @ApiModelProperty(value = "前端生成aes密钥并用rsaPub加密请求体")
    @NotBlank
    private String encryptedData;

    @ApiModelProperty(value = "原始请求数据（解密后回填到对象）")
    @JsonIgnore
    private T data;


}
